<?php

use yii\helpers\Html;
use app\assets\TimelineAsset;
use yii\widgets\ActiveForm;
use app\modules\clinical\models\ExcelSca;

/* @var $this yii\web\View */
/* @var $model app\models\ExcelSca */
/* @var $form yii\widgets\ActiveForm */
TimelineAsset::register($this);
?>

<section class="cd-horizontal-timeline">
<div class="timeline">
  <div class="events-wrapper">
    <div class="events">
      <ol id="timelineList">
        <li><a href="#0" data-date="16/01/2014" class="selected">临床症状</a></li>
        <li><a href="#0" data-date="28/02/2014">体征</a></li>
      </ol>

      <span class="filling-line" aria-hidden="true"></span>
    </div> <!-- .events -->
  </div> <!-- .events-wrapper -->
        
</div> <!-- .timeline -->

<div class="events-content">
  <ol>
    <li class="selected" data-date="16/01/2014">

      <!-- <h3>一、临床症状：</h3> -->
      <div class="form-group">
        <?= Html::label('患者姓名', 'pt_rel') ?><br />
        <?= Html::dropDownList('pt_rel', (!empty($pt_rel)) ? $pt_rel : 0, $pt_rel_list, ($model->isNewRecord) ? ['class' => 'pt_rel_list'] : ['class' => 'pt_rel_list', 'disabled' => 'true']) ?>
      </div>
      <h4>眼科相关：</h4>

      <?= $form->field($model, 'eye_dongyan')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'eye_zhenchan')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'eye_hunzhuo')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'eye_sesu')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'eye_huang')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'eye_bainei')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>

      <h4>精神及智力发育情况：</h4>

      <?= $form->field($model, 'mtl_zhangai', ['labelOptions'=>['class'=>'longlabel']])->textArea(['maxlength' => true])->error(false) ?>

      <?= $form->field($model, 'mtl_chizhi')->textArea(['maxlength' => true])->error(false) ?>

    </li>

    <li data-date="28/02/2014">

    <!-- <h3>二、体征：</h3> -->

      <?= $form->field($model, 'bd_gouyin')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'bd_jiwei')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'bd_gg_zhibi')->radioList(ExcelSca::getParams('zhibi'), ['class'=>'radioList'])->error(false) ?>
      <br />

      <?= $form->field($model, 'bd_gg_lunti')->radioList(ExcelSca::getParams('yinyang'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'bd_gg_genxi')->radioList(ExcelSca::getParams('yinyang'), ['class'=>'radioList'])->error(false) ?><br />

      <?= $form->field($model, 'bd_xingzou', ['labelOptions'=>['class'=>'longlabel']])->textArea(['maxlength' => true])->error(false) ?><br />

      <?= $form->field($model, 'bd_romberg')->radioList(ExcelSca::getParams('yinyang'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'bd_yizi')->radioList(ExcelSca::getParams('yizi'), ['class'=>'radioList'])->error(false) ?><br />

      <?= $form->field($model, 'bd_zhouwei')->textArea(['maxlength' => true])->error(false) ?><br />

      <?= $form->field($model, 'bd_bingli')->radioList(ExcelSca::getParams('yinyang'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'bd_zhangli')->radioList(ExcelSca::getParams('jizhangli'), ['class'=>'radioList'])->error(false) ?><br />
      
      <?= $form->field($model, 'bd_jianfan')->radioList(ExcelSca::getParams('jianfan'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'bd_jishu')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>
      <?= $form->field($model, 'bd_gongzu')->radioList(ExcelSca::getParams('youwu'), ['class'=>'radioList'])->error(false) ?>

    </li>
  </ol>
</div> <!-- .events-content -->
</section>
